package cn.edu.scau.cmi.wujiaxian.comprehension.util;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

/**
 * 简单的HibernateSessioFactory工厂类
 * 
 */
public class ScauCmiHibernateSessionFactoryUtil {

	@SuppressWarnings("deprecation")
	private static SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();

	public static Session getSession() {
		return sessionFactory.openSession();
	}
}